<template>
  <div id="app">
    <router-view />
    <!-- 底部标签栏 -->
    <van-tabbar
      v-model="active"
      active-color="#039"
      inactive-color="#999"
      v-if="$route.meta.isShowTabbar"
    >
      <van-tabbar-item icon="wap-home" to="/home">系统功能</van-tabbar-item>
      <van-tabbar-item icon="chat">联系</van-tabbar-item>
      <van-tabbar-item icon="manager" to="/user">个人中心</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  computed: {
    active: {
      get() {
        return this.$route.meta.activeNum;
      },
      set() {},
    },
  },
};
</script>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  font-size: 0.16rem;
  background-color: #f5f5f5;
}
html {
  font-size: 100px !important;
}

html,
body {
  height: 100%;
  // font-size: 0.16rem;
}
</style>
